package cn.app.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.app.dao.devDao.DevUserDao;
import cn.app.entity.DevUser;
import cn.app.service.DevUserService;

@Service
@Transactional
public class DevUserServiceImpl implements DevUserService {

	@Autowired
	private DevUserDao devUserDao;

	@Override
	public DevUser findAll(String devcode, String devpassword) {
		DevUser devUser = devUserDao.fandAllByName(devcode);
		if (devUser != null) {
			if (devpassword.equals(devUser.getDevpassword())) {
				return devUser;

			}
		}
		return null;
	}

}
